package cn.wolfcode.edu.web.controller;

import cn.wolfcode.edu.query.StudentChartQuery;
import cn.wolfcode.edu.service.IStudentChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * Created by 徐沅澧 on 2018/7/11.
 */
@Controller
@RequestMapping("studentChart")
public class StudentChartController {
    @Autowired
    private IStudentChartService chartService;

    /**
     * 定位到主界面
     */
    @RequestMapping("")
    public String index() {
        return "studentChart";
    }

    /**
     * 学生缴费信息列表
     */
    @RequestMapping("list")
    @ResponseBody
    public List<Map<String,Object>> list(StudentChartQuery qo) {
        return chartService.list(qo);
    }
}